<?php if($featued){?>

<div class="module clearfix">
	<h2>FEATURED IRANIAN LAWYERS</h2>
	
	
	
	<?php foreach ($featued as $featued):?>
	<div class="col-lg-6 featured wells alert-info">
		<img class="col-lg-4 img-rounded img-responsive"
			alt="Responsive image"
			src="<?=base_url();?>assets/images/photo/<?= $featued->photo; ?>">
		<div class="col-lg-8">
			
			<h2>
					<strong><a class="text-black" href="<?= base_url();?>profile/<?= $this->commoncall->url($featued->title);?>-<?= $featued->id;?>"><?= $featued->title; ?> </a>
					</strong>
				</h2>
				
					<span>Area :</span>
					<?php
				$keyword = $this->listing_model->getKeywordAll($featued->id,3);
				?>
				<?php if($keyword){?>
				<?php foreach($keyword as $keyword):?>
				<a class="small text-muted" href="<?= base_url()."browse/practice/".$this->commoncall->url($this->listing_model->getCategory($keyword->term_value)->name)."-".$keyword->term_value; ?>"><?= $this->listing_model->getCategory($keyword->term_value)->name; ?>,</a>
				<?php endforeach;}?>
				</p>
				<?php 
						$review_overall = $this->listing_model->getRatting($featued->id);
						?>
						<?php if($review_overall){?>
						
									<?php 
									$rating = $review_overall->experience;
									for ($i = 1; $i <= $rating; $i++) { ?>
									<img alt="ratting"
										src="<?= base_url(); ?>assets/images/star1.jpg" />
									<?php }
									for ($i = 1; $i <= 5 - $rating; $i++) { ?>
									<img alt="ratting"
										src="<?= base_url(); ?>assets/images/star0.jpg" />
									<?php } ?>
											(<?= $this->listing_model->count_reviews($featued->id);?>)
					
					<?php }else{?>
						<img alt="ratting"
						src="<?= base_url(); ?>assets/images/star0.jpg" />
						<img alt="ratting"
						src="<?= base_url(); ?>assets/images/star0.jpg" />
						<img alt="ratting"
						src="<?= base_url(); ?>assets/images/star0.jpg" />
						<img alt="ratting"
						src="<?= base_url(); ?>assets/images/star0.jpg" />
						<img alt="ratting"
						src="<?= base_url(); ?>assets/images/star0.jpg" />
						(<?= $this->listing_model->count_reviews($featued->id);?>)
						<?php }?>
						reviews
			
		</div>
	</div>
	<?php endforeach;?>


</div>

<?php }?>